// @ts-ignore
/* eslint-disable */
import request from "../../../config/request";

/** getById GET /api/question/inner/get/id */
export async function getByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.Question>("/api/question/inner/get/id", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getSubmitById GET /api/question/inner/submit/get/id */
export async function getSubmitByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSubmitByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.QuestionSubmit>("/api/question/inner/submit/get/id", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** updateById POST /api/question/inner/update/id */
export async function updateByIdUsingPost(
  body: API.QuestionSubmit,
  options?: { [key: string]: any }
) {
  return request<boolean>("/api/question/inner/update/id", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
